package com.demo.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.demo.domain.Admin;

public interface AdminService {

	List<Admin> findByUserNameAndPwd(String userName,String password);
	
	Admin create(Admin admin);
	
	Page<Admin> findByRoleCode(String roleCode,Pageable p);
	
	int updateByPrimaryKeySelective(Admin admin);
	
	Admin findOne(String id);
	
	Admin findByAccount(String account);
	
}
